<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>

</html>
<script>
    var arr = [12, 56, 89, 25, 36, 48, 13]
    function filterArr() {
        var brr = arr.filter(function (ele, i) {
            return ele > 30
        })
        return brr
    }
    console.log(filterArr(arr));
    
</script>